﻿namespace Blip.Tools
{
    using System.Diagnostics;

    /// <summary>
    /// Klasa wyświetlająca komunikaty diagnostyczne, gdy zdefiniowano stałą DEBUG.
    /// </summary>
    /// <example>
    /// <code>
    /// Debugger.Print("Flaga");
    /// </code>
    /// </example>
    internal static class Debugger
    {
        [Conditional("DEBUG")]
        internal static void Print(string s)
        {
            Debug.Print(s);
        }

        [Conditional("DEBUG")]
        internal static void Print(int i)
        {
            Debug.Print(i.ToString());
        }

        [Conditional("DEBUG")]
        internal static void Print(char c)
        {
            Debug.Print(c.ToString());
        }

        [Conditional("DEBUG")]
        internal static void Print(double d)
        {
            Debug.Print(d.ToString());
        }

        [Conditional("DEBUG")]
        internal static void Print(bool b)
        {
            Debug.Print(b.ToString());
        }
    }
}
